{template header}
<link href="{GODHOUSE_DOMAIN_WWW}css/calendar.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{GODHOUSE_DOMAIN_WWW}js/calendar.js"></script>
<script language="javascript" type="text/javascript" src="{GODHOUSE_DOMAIN_WWW}js/calendar-zh.js"></script>
<script language="javascript" type="text/javascript" src="../extend/tiny_mce/tiny_mce.js"></script>
<script language="javascript">	

tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	language : "ch",
	plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups",

	// Theme options
	theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
	theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
	theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true,

	// Example word content CSS (should be your site CSS) this one removes paragraph margins
	content_css : "extend/tiny_mce/css/word.css",

	// Drop lists for link/image/media/template dialogs
	template_external_list_url : "lists/template_list.js",
	external_link_list_url : "lists/link_list.js",
	external_image_list_url : "lists/image_list.js",
	media_external_list_url : "lists/media_list.js",

	// Replace values for the template plugin
	template_replace_values : {
		username : "Some User",
		staffid : "991234"
	}
});

</script>
<script language="javascript">
jQuery(function(){

	jQuery('#ispromotions').click(
		function(){
			if(jQuery(this).attr('checked') == true) {
				jQuery('#promotionsDisplay').show();
			} else {
				jQuery('#promotionsDisplay').hide();
			}
		}
	);
	
	var ispromotions = '{$gifts[ispromotions]}';
	if(ispromotions==1)
	{
		jQuery('#ispromotions').attr('checked', true);
		jQuery('#promotionsDisplay').show();
	}
			  
	jQuery('#startDate').click(function(){showCalendar('startDate');});
	jQuery('#endDate').click(function(){showCalendar('endDate');});

	jQuery('form[name=create]').submit(function(){
		
		if(jQuery('#categoryId').val()==0) {
			alert('请选择礼品类型');
			jQuery('#categoryId').focus();
			return false;
		}
		
		if(jQuery('#title').val()=='')
		{
			alert('请输入礼品标题');
			jQuery('#title').focus();
			return false;
		}
		
	});
});
</script>
<div class="path">
	<span><a href="logistic-admin.htm">配送方式管理</a></span>
	<!--{if $logisticId}-->
	<span>编辑配送方式</span>
	<!--{else}-->
	<span>添加配送方式</span>
	<!--{/if}-->
	
</div>
<div class="content">
	<div class="c1">
	<form name="create" action="logistic-$action-$logisticId.htm" method="post" enctype="multipart/form-data">
	      <table width="100%" border="0" cellspacing="2" cellpadding="2" style="text-align:center">
	       
	        <tr>
	          <td height="30" align="right">配送名称：</td>
	          <td align="left"><input type="text" name="logistic[title]" id="title" value="$logistic[title]" style="width:300px;" /></td>
	        </tr> 
	       
	        <tr>
	        	<td height="30" align="right" valign="top">配送描述：</td>
	          	<td align="left">
				<textarea id="logistic[content]" name="logistic[content]" rows="15" cols="80" style="width: 80%">$logistic[content]</textarea>
	          	</td>
	        </tr>
	        <tr>
	          <td height="30" align="right">&nbsp;</td>
	          <td align="left">
			<input type="submit" class="bigButton" name="submitTo" value="  提 交  " />	          </td>
	        </tr>
	      </table>
      </form>
	</div>
</div>
{template footer}